@echo off
rem Better than Z:\Distribs\AntiVirus\McAfee\cmd\new
set MyPath=\\MINE\down\upd\DAT
set LOG=%MyPath%\version.txt
reg query HKLM\SOFTWARE\McAfee\AVEngine /v AVDatVersion > %LOG%
echo (c) By %COMPUTERNAME% >> %LOG%
xcopy /c /m /d /y "%CommonProgramFiles%\McAfee\Engine\avv*.dat" %MyPath%

rem Utilizing my Bug - output file is in %MyPath%\~
unpack /unp2 %MyPath%\..\inc\PkgCatalog.z
move /y %MyPath%\~ %MyPath%\PkgCatalog.cab
cabarc -o x %MyPath%\PkgCatalog.cab %MyPath%\
